// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import VueRouter from 'vue-router'
import VueResouse from 'vue-resource'
import App from './App'

import 'vux/src/styles/reset.less'
import './common/less/index.less'

import Sell from './components/Hello'
import hello from './components/HelloFromVux'
import Home from './components/home/home'
import list from './components/list/list'
import ditail from './components/ditail/ditail'
import shopcar from './components/shopcar/shopcar'
import user from './components/user/user'


Vue.use(VueRouter)
Vue.use(VueResouse)

const routes = [
  {path: '/', component: Home},
  {path: '/list', component: list},
  {path: '/list/v/:id', component: ditail},
  {path: '/shopcar', component: shopcar},
  {path: '/user', component: user},
  {path: '/sell', component: Sell}
]

const router = new VueRouter({
  linkActiveClass: 'active',
  routes
})

FastClick.attach(document.body)

/* eslint-disable no-new */
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')


